using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using zeroflag.Windows.Custom;
namespace zeroflag.Parserz.IDE
{
	public partial class TokenView : TokenViewBase
	{
		public TokenView()
		{
			InitializeComponent();
		}

		[System.ComponentModel.Category("Tokens")]
		public zeroflag.Parserz.Token Root
		{
			get { return this.Controller.Root; }
			set { this.Controller.Root = value; }
		}

		private void TokenView_MouseDown(object sender, MouseEventArgs e)
		{
			if (e.Button == MouseButtons.Left)
			{
				this.Controller.HandleMouseSelect(e.X, e.Y);
			}
		}

		private void TokenView_MouseMove(object sender, MouseEventArgs e)
		{

		}

		private void TokenView_MouseUp(object sender, MouseEventArgs e)
		{

		}

	}
	public class TokenViewBase : TreeView<TokenController, TokenNode>
	{
	}

}

